package com.juanpi.mkt.ruleengine.match;

import org.mvel2.MVEL;

import com.espertech.esper.client.EPAdministrator;
import com.espertech.esper.client.EPRuntime;
import com.espertech.esper.client.EPServiceProvider;
import com.espertech.esper.client.EPServiceProviderManager;
import com.espertech.esper.client.EPStatement;
import com.juanpi.mkt.ruleengine.item.Fact;
import com.juanpi.mkt.ruleengine.item.RuleCondition;



public class EPLConditionMatcher implements RuleConditionMatcher{

	
	
	
	@Override
	public boolean match(Fact fact,RuleCondition con) {
		// TODO Auto-generated method stub

		
		boolean matchResult=(boolean) MVEL.eval(con.getExp(),fact);
		
		
		return matchResult;
	}
	
	
	
}
	
